<?php namespace App\Http\Controllers\Site;

use App\Http\Controllers\Controller;
use App\Item;

class CoursesController extends Controller
{
    public function getIndex($kind='Bridal makeup training')
    {
        $data = Item::where('kind',$kind)->paginate( config('site.courses.pageSize'));

        return view('site.Course.courses',[
            'data'=>$data,
            'param'=>['kind'=>$kind]
        ]);
    }
    public function getClasss($id=0)
    {
        $data= Item::where('id',$id)->get();
        return view('site.Course.classs',[
            'data'=>$data,
            'param'=>['id'=>$id],
        ]);
    }

}